package com.sjgtw.cloud.common.security.feign;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import feign.RequestInterceptor;

/**
 * <p>Title: 注册-配置并初始化Feign</p>
 * <p>Description: </p>
 * @author Admin
 * @date 2020-7-1
 */
@Configuration
public class FeignAutoConfiguration
{
    @Bean
    public RequestInterceptor requestInterceptor()
    {
        return new FeignRequestInterceptor();
    }
}
